package com.ebs.md.fxmonitor.marketmonitor.esper;

/**
 * Revision Author:
 *  $File: //depot/MarketData/fxmonitor/main/src/main/java/com/ebs/md/fxmonitor/marketmonitor/esper/PriceLadderSingleFactStatement.java $
 *  $Revision: #3 $
 *  $DateTime: 2012/08/29 09:05:48 $
 *  $Change: 114302 $
 *  $Author: Aviad.Yosef $
 */

import com.ebs.md.container.esper.AbsStatement;
import com.ebs.md.fxmonitor.marketmonitor.config.IPriceToppingConfig;


public class PriceLadderSingleFactStatement
extends AbsStatement<IPriceToppingConfig>
{

	@Override
	protected String createEplExpression() {
		String str =
		String.format(eplExpressionText
				//set this part of the query: .win:time_length_batch(%s milliseconds, %d)
				, config.getTimeFrameThreshold()                
				, config.getNumberOfPriceToppingsThreshold()
				);
		return str;
	}
	
}
